package com.sscaipiao.android.activity.ShiYiXuanWu;

import android.os.Bundle;
import android.view.View;
import com.sscaipiao.android.R;
import com.sscaipiao.android.activity.Base.RedBallSingleArrayActivity;
import com.sscaipiao.android.activity.DaLeTou.DaLeTouHistoryActivity;

/**
 * Created by Airay.Rong on 14-1-2.
 */
public class ElevenXuanWuActivity extends RedBallSingleArrayActivity {
	private final static String LOTT_CODE = "dlt";
	private final static int MAX_BALL_NUM = 11;
	private final static int MIN_CHOOSE_NUM = 5;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addContainerMain(R.layout.eleven_xuan_wu_activity);
		setupUI(true, false, true, true, true);
		setTitleText("11选5");
		setInfo("至少选择5个红球");
		addRedBalls(MAX_BALL_NUM);
		setRadomBallNum(MIN_CHOOSE_NUM);
		setupHeadBar(LOTT_CODE);
		setupLottLostValues();
		reCalculatorSum();
	}
	@Override
	public void onClick(View v) {
		super.onClick(v);
	    if (R.id.btn_confirm == v.getId()) {
			//doConfirm();
		}
		if (R.id.btn_show_history == v.getId()) {
			showLottHistory(ElevenXuanWuActivity.class);
		}
	}


}